package com.htandroid.htandroid.entity;

import java.io.Serializable;

//厨房请购定价界面list
public class MrqgdDjList implements Serializable {

    private String Ids;//明细表id
    private String cvouchid;
    private String cDepcode;
    private String cdepname;
    private String cInvcCode;
    private String cInvcName;
    private String cInvcode;
    private String cInvname;
    private String cInvstd;
    private String cInvm_unit;
    private String iQuantity;
    private String iprice;
    private String iamount;
    private String cvencode;
    private String cvenname;
    private String cvenemail;
    private String cventel;
    private String dDhDate;
    private String binvtype;
    private String djtype;
    private String djcvencode;
    private String djprice;
    private String cmemo;
    private String canupdjxy;
    private String dDate;
    private String bchecked;

    public void setobject(Object obj) {
        if (obj == null) return;
        if (this.getClass() != obj.getClass()) return;
        MrqgdDjList p = (MrqgdDjList) obj;
        this.setIds(p.getIds());
        this.setCvouchid(p.getCvouchid());
        this.setcDepcode(p.getcDepcode());
        this.setCdepname(p.getCdepname());
        this.setcInvcCode(p.getcInvcCode());
        this.setcInvcName(p.getcInvcName());
        this.setcInvcode(p.getcInvcode());
        this.setcInvname(p.getcInvname());
        this.setcInvstd(p.getcInvstd());
        this.setcInvm_unit(p.getcInvm_unit());
        this.setiQuantity(p.getiQuantity());
        this.setIprice(p.getIprice());
        this.setIamount(p.getIamount());
        this.setCvencode(p.getCvencode());
        this.setCvenname(p.getCvenname());
        this.setCvenemail(p.getCvenemail());
        this.setCventel(p.getCventel());
        this.setdDhDate(p.getdDhDate());
        this.setBinvtype(p.getBinvtype());
        this.setDjtype(p.getDjtype());
        this.setDjcvencode(p.getDjcvencode());
        this.setDjprice(p.getDjprice());
        this.setCmemo(p.getCmemo());
        this.setCanupdjxy(p.getCanupdjxy());
        this.setdDate(p.getdDate());
        this.setBchecked(p.getBchecked());
    }

    public boolean equal(Object obj) {
        if (obj == null) return false;
        if (this.getClass() != obj.getClass()) return false;
        MrqgdDjList p = (MrqgdDjList) obj;
        if (!this.Ids.equals(p.Ids)) return false;
        if (!this.cvouchid.equals(p.cvouchid)) return false;
        if (!this.cDepcode.equals(p.cDepcode)) return false;
        if (!this.cdepname.equals(p.cdepname)) return false;
        if (!this.cInvcCode.equals(p.cInvcCode)) return false;
        if (!this.cInvcName.equals(p.cInvcName)) return false;
        if (!this.cInvcode.equals(p.cInvcode)) return false;
        if (!this.cInvname.equals(p.cInvname)) return false;
        if (!this.cInvstd.equals(p.cInvstd)) return false;
        if (!this.cInvm_unit.equals(p.cInvm_unit)) return false;
        if (!this.iQuantity.equals(p.iQuantity)) return false;
        if (!this.iprice.equals(p.iprice)) return false;
        if (!this.iamount.equals(p.iamount)) return false;
        if (!this.cvencode.equals(p.cvencode)) return false;
        if (!this.cvenname.equals(p.cvenname)) return false;
        if (!this.cventel.equals(p.cventel)) return false;
        if (!this.dDhDate.equals(p.dDhDate)) return false;
        if (!this.binvtype.equals(p.binvtype)) return false;
        if (!this.djtype.equals(p.djtype)) return false;
        if (!this.djcvencode.equals(p.djcvencode)) return false;
        if (!this.djprice.equals(p.djprice)) return false;
        if (!this.cmemo.equals(p.cmemo)) return false;
        if (!this.canupdjxy.equals(p.canupdjxy)) return false;
        if (!this.dDate.equals(p.dDate)) return false;
        return this.bchecked.equals(p.bchecked);
    }

    //����ʱ,�鿴�����Ƿ�ƥ��
    public boolean mrqgdappfind(String param) {
        //�����ѯת��
        if (param.equals("������")) {
            if (this.cvencode.equals("")) return true;
        } else if (param.equals("���л�")) {
            if (!this.cvencode.equals("")) return true;
        } else {
            //if (this.Ids.contains(param)) return true;
            //if (this.cvouchid.contains(param)) return true;
            if (this.cDepcode.contains(param)) return true;
            if (this.cdepname.contains(param)) return true;
            //if (this.cInvcCode.contains(param)) return true;
            //if (this.cInvcName.contains(param)) return true;
            //if (this.cInvcode.contains(param)) return true;
            //if (this.cInvname.contains(param)) return true;
            //if (this.cInvstd.contains(param)) return true;
            //if (this.cInvm_unit.contains(param)) return true;
            //if (this.iQuantity.contains(param)) return true;
            //if (this.iprice.contains(param)) return true;
            //if (this.iamount.contains(param)) return true;
            if (this.cvencode.contains(param)) return true;
            if (this.cvenname.contains(param)) return true;
            if (this.cventel.contains(param)) return true;
            if (this.dDhDate.contains(param)) return true;
            //if (this.binvtype.contains(param)) return true;
            //if (this.djtype.contains(param)) return true;
            //if (this.djcvencode.contains(param)) return true;
            //if (this.djprice.contains(param)) return true;
            //if (this.cmemo.contains(param)) return true;
            //if (this.canupdjxy.contains(param)) return true;
            if (this.dDate.contains(param)) return true;
            //if (this.bchecked.contains(param)) return true;
        }
        return false;
    }

    public String getIds() {
        return Ids;
    }

    public void setIds(String ids) {
        Ids = ids;
    }

    public String getcDepcode() {
        return cDepcode;
    }

    public void setcDepcode(String cDepcode) {
        this.cDepcode = cDepcode;
    }

    public String getCdepname() {
        return cdepname;
    }

    public void setCdepname(String cdepname) {
        this.cdepname = cdepname;
    }

    public String getcInvcCode() {
        return cInvcCode;
    }

    public void setcInvcCode(String cInvcCode) {
        this.cInvcCode = cInvcCode;
    }

    public String getcInvcode() {
        return cInvcode;
    }

    public void setcInvcode(String cInvcode) {
        this.cInvcode = cInvcode;
    }

    public String getcInvname() {
        return cInvname;
    }

    public void setcInvname(String cInvname) {
        this.cInvname = cInvname;
    }

    public String getcInvstd() {
        return cInvstd;
    }

    public void setcInvstd(String cInvstd) {
        this.cInvstd = cInvstd;
    }

    public String getcInvm_unit() {
        return cInvm_unit;
    }

    public void setcInvm_unit(String cInvm_unit) {
        this.cInvm_unit = cInvm_unit;
    }

    public String getiQuantity() {
        return iQuantity;
    }

    public void setiQuantity(String iQuantity) {
        this.iQuantity = iQuantity;
    }

    public String getIprice() {
        return iprice;
    }

    public void setIprice(String iprice) {
        this.iprice = iprice;
    }

    public String getIamount() {
        return iamount;
    }

    public void setIamount(String iamount) {
        this.iamount = iamount;
    }

    public String getCvencode() {
        return cvencode;
    }

    public void setCvencode(String cvencode) {
        this.cvencode = cvencode;
    }

    public String getdDhDate() {
        return dDhDate;
    }

    public void setdDhDate(String dDhDate) {
        this.dDhDate = dDhDate;
    }

    public String getBinvtype() {
        return binvtype;
    }

    public void setBinvtype(String binvtype) {
        this.binvtype = binvtype;
    }

    public String getDjtype() {
        return djtype;
    }

    public void setDjtype(String djtype) {
        this.djtype = djtype;
    }

    public String getDjcvencode() {
        return djcvencode;
    }

    public void setDjcvencode(String djcvencode) {
        this.djcvencode = djcvencode;
    }

    public String getDjprice() {
        return djprice;
    }

    public void setDjprice(String djprice) {
        this.djprice = djprice;
    }

    public String getCmemo() {
        return cmemo;
    }

    public void setCmemo(String cmemo) {
        this.cmemo = cmemo;
    }

    public String getCanupdjxy() {
        return canupdjxy;
    }

    public void setCanupdjxy(String canupdjxy) {
        this.canupdjxy = canupdjxy;
    }

    public String getdDate() {
        return dDate;
    }

    public void setdDate(String dDate) {
        this.dDate = dDate;
    }

    public String getBchecked() {
        return bchecked;
    }

    public void setBchecked(String bchecked) {
        this.bchecked = bchecked;
    }

    public String getCvenname() {
        return cvenname;
    }

    public void setCvenname(String cvenname) {
        this.cvenname = cvenname;
    }

    public String getCventel() {
        return cventel;
    }

    public void setCventel(String cventel) {
        this.cventel = cventel;
    }

    public String getcInvcName() {
        return cInvcName;
    }

    public void setcInvcName(String cInvcName) {
        this.cInvcName = cInvcName;
    }

    public String getCvouchid() {
        return cvouchid;
    }

    public void setCvouchid(String cvouchid) {
        this.cvouchid = cvouchid;
    }

    public String getCvenemail() {
        return cvenemail;
    }

    public void setCvenemail(String cvenemail) {
        this.cvenemail = cvenemail;
    }
}
